package com.ali.order.entity;

import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName OrderDetail
 * @Description TODO
 * @Author Alistair.Chow
 * @date 2018/12/20 16:55
 * @Version 1.0
 */
@Entity
@DynamicInsert
public class OrderDetail {
    /** 订单详情ID**/
    @Id
    private String id;
    /** 订单ID **/
    private String orderId;
    /** 商品ID **/
    private Integer itemId;
    /** 商品Sku ID **/
    private Integer itemSkuId;
    /** 商品Sku名称 **/
    private String itemSkuName;
    /** 商品单价 **/
    private BigDecimal itemPrice;
    /** 商品数量 **/
    private Integer itemQuantity;
    /** 商品图片 **/
    private String itemPic;
    /** 创建时间 **/
    private Date createTime;
    /** 更新时间 **/
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getItemSkuId() {
        return itemSkuId;
    }

    public void setItemSkuId(Integer itemSkuId) {
        this.itemSkuId = itemSkuId;
    }

    public String getItemSkuName() {
        return itemSkuName;
    }

    public void setItemSkuName(String itemSkuName) {
        this.itemSkuName = itemSkuName;
    }

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
    }

    public Integer getItemQuantity() {
        return itemQuantity;
    }

    public void setItemQuantity(Integer itemQuantity) {
        this.itemQuantity = itemQuantity;
    }

    public String getItemPic() {
        return itemPic;
    }

    public void setItemPic(String itemPic) {
        this.itemPic = itemPic;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
